// src/router/index.js
import { createRouter, createWebHistory } from 'vue-router';

const routes = [
  {
    path: '/',
    name: 'ome',
    component: () => import('../views/Home/home.vue'), // 动态导入组件
  },
  {
    path:'/login',
    name:'Home',
    component:()=>import('../views/Home/home.vue')
  }

  // 其他路由配置
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;